package com.ibm.db2oncampus.portal.framework.persistence;

import java.util.List;

import org.springframework.dao.DataAccessException;

/**
 * 
 * @author Wellington
 *
 */
public interface Dao<T> {

    public abstract T findById(long l) throws DataAccessException;

    public abstract List<T> findAll() throws DataAccessException;

    public abstract List<T> findAll(String s) throws DataAccessException;

    public abstract void save(T obj) throws DataAccessException;

    public abstract void remove(T obj) throws DataAccessException;

    public abstract void removeAll(List<T> list);
    
    public abstract Class<T> getPersistentClass();
}